package encryption

import (
	"crypto/md5"
	"encoding/hex"
)


func EncryptionMd5(str,salt string)(string,error){
	hash := md5.New()
	byteStr := []byte(str)
	byteSalt := []byte(salt)
	hash.Write(byteSalt)
	hash.Write(byteStr)
	return hex.EncodeToString(hash.Sum(nil)),nil
}